package com.southwind.service.impl;

import com.southwind.entity.OperateLog;
import com.southwind.mapper.OperateLogMapper;
import com.southwind.service.OperateLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OperateLogServiceImpl implements OperateLogService {

    @Resource
    private OperateLogMapper operateLogMapper;

    @Override
    public void insert(OperateLog log) {
        operateLogMapper.insert(log);
    }

    @Override
    public List<OperateLog> listAll() {
        return operateLogMapper.listAll();
    }
}
